cmake_minimum_required(VERSION 2.8.7)

project(Gosterim)

find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
include(${QT_USE_FILE})

FIND_PACKAGE(VTK REQUIRED)
INCLUDE(${VTK_USE_FILE})

set(SOURCES
  Gosterici.cpp
  vtkYorunge.cpp
  vtkYorungeNoktasal.cpp
  vtkYorunge3BModel.cpp
  TelefonModeli.cpp
)
set(HEADERS
  Gosterici.h
  vtkYorunge.h
  vtkYorungeNoktasal.h
  vtkYorunge3BModel.h
  TelefonModeli.h
)
set(MOC
  Gosterici.h
)

# Qt Preprocessing
qt4_wrap_cpp(MOC_GENERATED ${MOC})

# File Filters
source_group("Generated Files" FILES ${MOC_GENERATED})

# Include Dirs
include_directories(${GOSTERIM_INCLUDE_DIRS})

# Library
add_library(Gosterim ${SOURCES} ${HEADERS} ${MOC_GENERATED})

# Dependancies
target_link_libraries(Gosterim Ortak QVTK ${QT_LIBRARIES} ${VTK_LIBRARIES})

